<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>WISSC轮滑教培服务网-查询系统</title>
    <#assign base=request.contextPath  />
    <meta name="renderer" content="webkit">
    <link rel="icon" href="${base}/favicon.ico">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="${base}/frame/layui/css/layui.css" media="all">
    <script type="text/javascript" src="${base}/js/feng.js"></script>
    <script src="${base}/js/jquery.min.js"></script>
    <script src="${base}/frame/layui/layui.all.js"></script>
</head>
</html>
<body>
<#list list as s >
    <input type="hidden" id="img" value="${s.imageUrl}"/>
    <div id="imgurl">
    <#--<img src="${base}/team/getPhoto?path=${s.imageUrl}" width="100%" height="100%"/>-->
    </div>
    <br>
    <a href="${base}/occupation/Download?id=${s.id}">
        <button type="button" style="width: auto; height: auto;border:0; background-color: #0e947a; color: white; border-radius: 2px; padding: 5px 18px;" >下载图片</button>
    </a>
</#list>
<#list list1 as a>
    <a href="${base}/occupation/referee.html?curPage=${a}&idNumber=${idNumber}&idNo=${idNo}">
        <span>&nbsp;&nbsp;</span> <button style="padding: 4px 8px;border-radius: 2px">${a}</button><span>&nbsp;&nbsp;</span>
    </a>
</#list>
<script>
    var imgurl = $("#img").val();
    function IsPC(){
        var userAgentInfo = navigator.userAgent;
        var Agents = new Array("Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod");
        var flag = true;
        for (var v = 0; v < Agents.length; v++) {
            if (userAgentInfo.indexOf(Agents[v]) > 0) { flag = false; break; }
        }
        return flag;
    }
    if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
        //alert(navigator.userAgent);
        //window.location.href ="iPhone.html";
        $("#imgurl").append(
                '<img src="${base}/team/getPhoto?path='+imgurl+'" width="100%" height="100%"/>'
        )
    } else if (/(Android)/i.test(navigator.userAgent)) {
        //alert(navigator.userAgent);
        //window.location.href ="Android.html";
        $("#imgurl").append(
                '<img src="${base}/team/getPhoto?path='+imgurl+'" width="100%" height="100%"/>'
        )

    } else {
        // window.location.href ="pc.html";
        $("#imgurl").append(
                '<img src="${base}/team/getPhoto?path='+imgurl+'" width="595px" height="842px"/>'
        )
    };
</script>
</body>